unit U_fm_xml2;

interface

uses
  Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
  Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.Buttons;

type
  Tfm_xml2 = class(TForm)
    grp1: TGroupBox;
    lbl1: TLabel;
    edt1: TEdit;
    btn4: TBitBtn;
    dlgOpen1: TOpenDialog;
    btn1: TBitBtn;
    btn2: TBitBtn;
    procedure btn4Click(Sender: TObject);
    procedure btn1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  fm_xml2: Tfm_xml2;

implementation

{$R *.dfm}

uses U_dm_principal;

procedure Tfm_xml2.btn1Click(Sender: TObject);
begin

    dm_principal.cds_cad_incidente.LoadFromFile(edt1.Text);

end;

procedure Tfm_xml2.btn4Click(Sender: TObject);
begin
dlgOpen1.Filter:='Arquivos De Texto (*.XML)';

     If (dlgOpen1.Execute) Then
      edt1.Text:=dlgOpen1.FileName;
end;

end.
